package com.sudo.common.annotation;

import java.lang.annotation.*;
import java.util.concurrent.TimeUnit;

import static java.lang.annotation.ElementType.METHOD;

/**
 * @author 001
 */
@Documented
@Inherited
@Target({METHOD})
@Retention(RetentionPolicy.RUNTIME)
public @interface ApiIdempotent {
    long expire() default 3L;

    TimeUnit timeUnit() default TimeUnit.SECONDS;
}
